package com.xiaotian.provider;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication // spring boot核心注解
@EnableDubbo // 开启dubbo
@MapperScan(basePackages = "com.xiaotian.dao") // 扫描mapper接口
@ComponentScan("com.xiaotian.common") // 扫描common包
@ComponentScan("com.xiaotian.provider") // 扫描本项目
// @EnableTransactionManagement(proxyTargetClass = true)
public class ProviderApplication {

    public static void main(String[] args) {
        SpringApplication.run(ProviderApplication.class, args);
    }
}
